<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="javascript:test()">click</a>
    <a href="javascript:;">click2</a>//设置a变迁的跳转

    <script>
        var func = function(name,age,height,weight){
            console.log(name);
            console.log(age);
            console.log(height);
            console.log(weight);
            console.log(arguments);

            //arguments是函数的内置对象，可以直接使用
            //arguments保存当前函数的所有参数，通过数组的形式返回
            //arguments是类数组对象
            console.log(arguments[1]);//10
            console.log(arguments.length);//14



        }
        func('tom',15,177,60)
        function test(){
            console.log('这个方法被我出发')
        }
    </script>
</body>
</html>